ScxV6Server.Objects Method

Returns a list of all database objects that share a common class type. Each database object is returned as an ScxV6Object object.

Parameters

Returns

Returns an ScxV6Objects collection.

Remarks

The Class parameter can be a creatable class, or a base class. For example setting Class to "CPointAlgManual" would returns a collection of objects representing all internal analogue points in the database. Setting Class to "CAlarmObject" would return a list of all objects in the database capable of generating alarms.

The ScxV6Server object must be connected to a database server before using this method. See Connect Method for more information.

Example:

The following example written in VB.NET shows the Objects method being used to find the name of all internal analogue points in the server.

Dim Svr As ScxV6DbClient.ScxV6Server

' Connect to the server

Svr = New ScxV6DbClient.ScxV6Server

Svr.Connect("MAIN", "", "")

Dim Objs As ScxV6DbClient.ScxV6Objects

Objs = Svr.Objects("CPointAlgManual")

Dim Obj As ScxV6DbClient.ScxV6Object

For Each Obj In Objs

Console.WriteLine(Obj.FullName)

Next

' Disconnect

Svr.Disconnect()


Disclaimer

Geo SCADA Expert 2020